
import { request } from 'ice';
// 优惠码列表
export const getCouponCodeList = (params) => {
  return request.post('/operation/list-coupon-code', params);
}
// 获取优惠券详情
export const getCoupon = (params) => {
  return request.post('/operation/get-ticket', params);
}
// 优惠券下拉列表
export const getCouponChoose = (params) => {
  return request.get('/operation/list-ticket-choose?name=' + params.name);
}
export const getCouponList = (params) => {
  return request.post('/operation/list-ticket', params);
}
// 是否启用优惠券
export const enableCoupon = (id: string) => {
  return request.get('/operation/enabled-ticket?id=' + id);
}
